/*
 * Created on Oct 10, 2004
 */
package org.vectrics.history;

import java.util.Date;

import org.vectrics.common.db.RecordObject;
import org.vectrics.common.util.DateSync;

/**
 * @author mmoore
 */
public class AuditLogRecord implements RecordObject {
	public Long id;
	public String message;
	public Long entityId;
	public Class entityClass;
	public Long personId;
	public Date dateCreated;

	
	public AuditLogRecord() {
		super();
	}
	
	/**
	 * @param message
	 * @param entityId
	 * @param entityClass
	 * @param userId
	 * @param dateCreated
	 */
	public AuditLogRecord(String message, Long entityId, Class entityClass,
			Long personId) {
		super();
		this.message = message;
		this.entityId = entityId;
		this.entityClass = entityClass;
		this.personId = personId;
		this.dateCreated = DateSync.getCurrentTime();
	}
	
	
	/**
	 * @return Returns the id.
	 */
	public Long getId() {
		return id;
	}
	/**
	 * @param id The id to set.
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * @return Returns the dateCreated.
	 */
	public Date getDateCreated() {
		return dateCreated;
	}
	/**
	 * @param dateCreated The dateCreated to set.
	 */
	public void setDateCreated(Date dateCreated) {
		this.dateCreated = dateCreated;
	}
	/**
	 * @return Returns the entityClass.
	 */
	public Class getEntityClass() {
		return entityClass;
	}
	/**
	 * @param entityClass The entityClass to set.
	 */
	public void setEntityClass(Class entityClass) {
		this.entityClass = entityClass;
	}
	/**
	 * @return Returns the entityId.
	 */
	public Long getEntityId() {
		return entityId;
	}
	/**
	 * @param entityId The entityId to set.
	 */
	public void setEntityId(Long entityId) {
		this.entityId = entityId;
	}
	/**
	 * @return Returns the message.
	 */
	public String getMessage() {
		return message;
	}
	/**
	 * @param message The message to set.
	 */
	public void setMessage(String message) {
		this.message = message;
	}
	/**
	 * @return Returns the userId.
	 */
	public Long getPersonId() {
		return personId;
	}
	/**
	 * @param userId The userId to set.
	 */
	public void setPersonId(Long personId) {
		this.personId = personId;
	}
}
